package com.example.dqreptile.entity;

import javax.persistence.*;
import java.util.List;

@Entity
@Table(name = "skill")
public class Skill {

    @Id
    private int sId;

    private String sName;

    private int sConsume;

    private String sImgPath;

    private String sEffect;

    private String sType;

    @ManyToMany(mappedBy = "skillList")
    private List<Monster> monsterList;

    public List<Monster> getMonsterList() {
        return monsterList;
    }

    public void setMonsterList(List<Monster> monsterList) {
        this.monsterList = monsterList;
    }

    public int getsId() {
        return sId;
    }

    public void setsId(int sId) {
        this.sId = sId;
    }

    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName;
    }

    public int getsConsume() {
        return sConsume;
    }

    public void setsConsume(int sConsume) {
        this.sConsume = sConsume;
    }

    public String getsType() {
        return sType;
    }


    public String getsImgPath() {
        return sImgPath;
    }

    public void setsImgPath(String sImgPath) {
        this.sImgPath = sImgPath;
    }


    public void setsType(String sType) {
        this.sType = sType;
    }

    public String getsEffect() {
        return sEffect;
    }

    public void setsEffect(String sEffect) {
        this.sEffect = sEffect;
    }

    @Override
    public String toString() {
        return "Skill{" +
                "sId=" + sId +
                ", sName='" + sName + '\'' +
                ", sConsume=" + sConsume +
                ", sImgPath='" + sImgPath + '\'' +
                ", sEffect='" + sEffect + '\'' +
                ", sType='" + sType + '\'' +
                ", monsterList=" + monsterList +
                '}';
    }
}
